home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / vim_src.zip / PARAM.H < prev    next >
C/C++ Source or Header  |  1993-01-12  |  4KB  |  106 lines

  1. /* vi:ts=4:sw=4
  2.  *
  3.  * VIM - Vi IMitation
  4.  *
  5.  * Code Contributions By:    Bram Moolenaar            mool@oce.nl
  6.  *                            Tim Thompson            twitch!tjt
  7.  *                            Tony Andrews            onecom!wldrdg!tony 
  8.  *                            G. R. (Fred) Walter        watmath!watcgl!grwalter 
  9.  */
  10.  
  11. /*
  12.  * param.h: definition of global variables for settable parameters
  13.  *
  14.  * EXTERN is only defined in main.c (and vim.h)
  15.  */
  16.  
  17. #ifndef EXTERN
  18. # define EXTERN extern
  19. # define INIT(x)
  20. #else
  21. # ifndef INIT
  22. #  define INIT(x) x
  23. # endif
  24. #endif
  25.  
  26. /*
  27.  * The following are actual variabables for the parameters
  28.  */
  29.  
  30. EXTERN int    p_ai    INIT(= FALSE);        /* auto-indent */
  31. EXTERN int    p_aw    INIT(= FALSE);        /* auto-write */
  32. EXTERN long    p_bs    INIT(= 0);            /* backspace over newlines in insert mode */
  33. EXTERN int    p_bk    INIT(= TRUE);        /* make backups when writing out files */
  34. #ifdef UNIX
  35. EXTERN char *p_bdir    INIT(= BACKUPDIR);    /* directory for backups */
  36. #endif
  37. #ifdef DIGRAPHS
  38. EXTERN int    p_dg    INIT(= FALSE);        /* enable digraphs */
  39. #endif /* DIGRAPHS */
  40. EXTERN char *p_dir    INIT(= "");            /* directory for autoscript file */
  41. EXTERN char *p_ep    INIT(= "indent");    /* program name for '=' command */
  42. EXTERN int    p_eb    INIT(= FALSE);        /* ring bell for errors */
  43. #ifdef AMIGA
  44. EXTERN char *p_ef    INIT(= "AztecC.Err");    /* name of errorfile */
  45. #else
  46. EXTERN char *p_ef    INIT(= "");            /* name of errorfile */
  47. #endif
  48. EXTERN int    p_et    INIT(= FALSE);        /* expand tabs into spaces */
  49. #ifdef MSDOS
  50. EXTERN int    p_gr    INIT(= TRUE);        /* display graphic characters */
  51. #else
  52. EXTERN int    p_gr    INIT(= FALSE);        /* display graphic characters */
  53. #endif
  54. EXTERN long p_hi    INIT(= 20);            /* command line history size */
  55. EXTERN char *p_hf    INIT(= VIM_HLP);    /* name of help file */
  56. EXTERN int    p_ic    INIT(= FALSE);        /* ignore case in searches */
  57. EXTERN int    p_im    INIT(= FALSE);        /* start editing in input mode */
  58. EXTERN char *p_kp    INIT(= "ref");        /* keyword program */
  59. EXTERN int    p_js    INIT(= TRUE);        /* use two spaces after period with Join */
  60. EXTERN int    p_list    INIT(= FALSE);        /* show tabs and newlines graphically */
  61. EXTERN int    p_magic INIT(= TRUE);        /* use some characters for reg exp */
  62. EXTERN long p_ml    INIT(= 5);            /* number of mode lines */
  63. EXTERN int    p_nu    INIT(= FALSE);        /* number lines on the screen */
  64. EXTERN char *p_para    INIT(= "IPLPPPQPP LIpplpipbp");        /* paragraphs */
  65. EXTERN int    p_ro    INIT(= FALSE);        /* readonly */
  66. EXTERN int    p_remap    INIT(= TRUE);        /* remap */
  67. EXTERN int    p_rd    INIT(= TRUE);        /* delete when replacing */
  68. EXTERN long    p_report    INIT(= 2);        /* minimum number of lines for report */
  69. EXTERN int    p_ru    INIT(= FALSE);        /* show column/line number */
  70. EXTERN long    p_scroll    INIT(= 12);        /* scroll size */
  71. EXTERN long    p_sj    INIT(= 1);            /* scroll jump size */
  72. EXTERN char *p_sections    INIT(= "SHNHH HUnhsh");        /* sections */
  73. #ifdef MSDOS
  74. EXTERN char *p_sh     INIT(= "command");        /* name of shell to use */
  75. #else
  76. EXTERN char *p_sh     INIT(= "sh");        /* name of shell to use */
  77. #endif
  78. EXTERN long    p_st    INIT(= 0);            /* type of shell */
  79. EXTERN int    p_sr    INIT(= FALSE);        /* shift round off (for < and >) */
  80. EXTERN long    p_sw    INIT(= 8);            /* shiftwidth (for < and >) */
  81. EXTERN int    p_sc    INIT(= TRUE);        /* show command in status line */
  82. EXTERN int    p_sm    INIT(= FALSE);        /* showmatch */
  83. EXTERN int    p_mo    INIT(= TRUE);        /* show mode */
  84. EXTERN int    p_si    INIT(= FALSE);        /* smart-indent for c programs */
  85. EXTERN char *p_su    INIT(= ".bak.o.h.info.vim");    /* suffixes for wildcard expansion */
  86. EXTERN long p_ts    INIT(= 8);            /* tab size in the file */
  87. EXTERN long p_tl    INIT(= 0);            /* used tag length */
  88. EXTERN char *p_tags    INIT(= "tags");        /* tags search path */
  89. EXTERN int    p_terse    INIT(= TRUE);        /* terse (not used) */
  90. #ifdef MSDOS
  91. EXTERN int    p_tx    INIT(= TRUE);        /* textmode for file I/O */
  92. #endif
  93. EXTERN long p_tw    INIT(= 9999);        /* textwidth */
  94. EXTERN int    p_to    INIT(= FALSE);        /* tilde is an operator */
  95. EXTERN int    p_timeout    INIT(= TRUE);    /* mappings entered within one second */
  96. EXTERN long p_ul    INIT(= 100);        /* number of Undo Levels */
  97. EXTERN long p_uc    INIT(= 100);        /* update count for auto script file */
  98. EXTERN long p_ut    INIT(= 2000);        /* update time for auto script file */
  99. EXTERN int    p_vb    INIT(= FALSE);        /* visual bell only (no beep) */
  100. EXTERN int    p_warn    INIT(= TRUE);        /* warn for changes at shell command */
  101. EXTERN int    p_ws    INIT(= TRUE);        /* wrap scan */
  102. EXTERN long p_wm    INIT(= 0);            /* wrapmargin */
  103. EXTERN int    p_wa    INIT(= FALSE);        /* write any */
  104. EXTERN int    p_wb    INIT(= TRUE);        /* write backup files */
  105. EXTERN int    p_ye    INIT(= FALSE);        /* Y yanks to end of line */
  106.